package com.community.backend.service;

import java.io.IOException;

public interface ChatService {

    // 移除旧的 token 相关方法
    // String getAccessToken() throws IOException;
    // String getAccessToken(String apiKey, String secretKey) throws IOException;

    // 只保留流式聊天方法
    void streamChat(String sessionId, String userInput, StreamResponseHandler handler) throws IOException;

    @FunctionalInterface
    interface StreamResponseHandler {
        void handle(String chunk);
    }
}